package c.a.a.d0;

import c.a.a.b0.b;
import c.a.a.d0.h0.c;
import c.a.a.d0.h0.c.a;
import java.io.IOException;

/* compiled from: DocumentDataParser */
public class g implements g0<b> {
    public static final g a = new g();
    public static final a b = a.a("t", "f", "s", "j", "tr", "lh", "ls", "fc", "sc", "sw", "of");

    public Object a(c cVar, float f) throws IOException {
        b.a aVar = b.a.CENTER;
        cVar.o();
        b.a aVar2 = aVar;
        String str = null;
        String str2 = str;
        float f2 = 0.0f;
        int i = 0;
        float f3 = 0.0f;
        float f4 = 0.0f;
        int i2 = 0;
        int i3 = 0;
        float f5 = 0.0f;
        boolean z = true;
        while (cVar.t()) {
            switch (cVar.w0(b)) {
                case 0:
                    str = cVar.t0();
                    break;
                case 1:
                    str2 = cVar.t0();
                    break;
                case 2:
                    f2 = (float) cVar.w();
                    break;
                case 3:
                    int h0 = cVar.h0();
                    if (h0 <= 2 && h0 >= 0) {
                        aVar2 = b.a.values()[h0];
                        break;
                    }
                    aVar2 = aVar;
                    break;
                case 4:
                    i = cVar.h0();
                    break;
                case 5:
                    f3 = (float) cVar.w();
                    break;
                case 6:
                    f4 = (float) cVar.w();
                    break;
                case 7:
                    i2 = o.a(cVar);
                    break;
                case 8:
                    i3 = o.a(cVar);
                    break;
                case 9:
                    f5 = (float) cVar.w();
                    break;
                case 10:
                    z = cVar.v();
                    break;
                default:
                    cVar.x0();
                    cVar.y0();
                    break;
            }
        }
        c cVar2 = cVar;
        cVar.r();
        return new b(str, str2, f2, aVar2, i, f3, f4, i2, i3, f5, z);
    }
}
